import { createPinia } from 'pinia'
import { App } from 'vue'
import useLoginStore from './login'

const pinia = createPinia()

function registerStore(app: App<Element>){
  app.use(pinia)
  // 刷新页面，从缓存中获取路由
  const loginStore = useLoginStore()
  loginStore.loadLocalCacheAction()
}

export default registerStore
